/* declaration de la police du site */
@font-face {
    font-family: cabin;
    src: url(font/Cabin/static/Cabin-Bold.ttf);
}
@font-face {
    font-family: lato;
    src: url(font/Lato/Lato-Regular.ttf);
}
body {
    font-family: 'lato';
}
*{
    font-family: 'lato';
}
p{
    font-size: 16px;
}
p{font-size: 15px;}
h1{font-size: 29px;}
h2{font-size: 26px;}
h3{font-size: 17px;}
h6{font-size: 12px; text-transform: uppercase;}
@media (min-width:1300px) {
    p{font-size: 18px;}
h1{font-size: 45px;}
h2{font-size: 24px;}
h3{font-size: 20px;}
h6{font-size: 16px; text-transform: uppercase;}
}
@media (max-width:768px) {
p{font-size: 12px;}
h1{font-size: 27px;}
h2{font-size: 21px;}
h3{font-size: 15px;}
h6{font-size: 10px;}
}
@media (max-width:480px) {
p{font-size: 12px;}
h1{font-size: 18px;}
h2{font-size: 16px;}
h3{font-size: 14px;}
h6{font-size: 10px;}
}
/* Définition de la variable des couleurs  */
:root {
    --claire: #46AFCF;
    --vert: #366228;
    --bleu: #03466E;
    --rouge: #9D0F07; 
}
@keyframes slideIn {
    from {
        transform: translateX(-200px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
/**********************************************************************/
.banner {
    height: 700px;
    margin-top: 7%;
    background: url('images/A\ propos/banner.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 6%;
}

/* Conteneur de contenu de la bannière */
.banner-content {
    max-width: 300px;
    height: 100px;
    margin: 0 auto;
    margin-top: 250px;
    margin-left: 20px;
    background: #fff; 
    padding: 10px;
    border-radius: 10px;
    animation: slideIn 2s forwards;
}

/* Style pour le sous-titre de la bannière */
.banner-subtitle {
    color: #FFF;
    background-color: var(--bleu);
    border-radius: 10px;
    padding: 5px;
    width: 60%;
    margin-bottom: 10px; 
    margin-top: 10px;
}

/* Style pour le texte de la bannière */
.banner-text {
    text-align: left;
    font-weight: bold;
    color: #000;
    line-height: 1.1;
}

/* Media queries pour la responsivité */
@media (max-width: 1300px) {
    .banner{
        margin-top: 6%;
        height: 500px;
    }
    .banner-content{
        margin-top: 200px;
    }
}
@media (max-width: 768px) {
    .banner {
        padding: 30px 15px;
    }
    .banner-content {
        padding: 15px;
        margin-top: 120px;
    }
}

@media (max-width: 480px) {
    .banner {

        margin-top: 70px;
        padding: 10px 10px;
        height: 300px;
    }
    .banner-subtitle{
        width: 80%;
    }
    .banner-content {
        padding: 10px;
        width: 50%;
        height: auto;
        margin-top: 80px;
    }
}
/*******************************************************************************************/
/* Style de la section contenant les deux blocs */
.section2 {
    max-width: 1200px;
    width: 60%;
    margin-left: 20%;
    margin-right: 10%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 6%;
  }
  
  /* Style du bloc de gauche */
  .left {
    width: 50%; /* Ajuste la largeur selon les besoins */
    margin-left: 10px;
    padding: 20px;
    display: flex;
  
  }
  
  /* Style de l'image avec fond */
  .image {
    position: relative;
    width: 80%;
    height: auto;
    overflow: hidden;
  }
  
  /* Couche de couleur de fond */
  .overlay {
    position: absolute;
    top: -60%; /* Décalage vers le haut */
    right: -30%; /* Décalage vers la gauche */
    width: 90%;
    height: 120%; /* Ajuste la hauteur pour couvrir le décalage */
    background-image: url('images/A\ propos/Pattern.png'); /* Couleur #ff6233 avec une faible opacité */
    z-index: 0;
  }
  
  /* Style de l'image */
  .image img {
    margin-top: 10%;
    margin-right: 10%;
    display: block;
    width: 90%; /* Ajuste la taille de l'image */
    height: auto;
    position: relative;
    z-index: 2;
    border-radius: 10px; /* Ajoute des bords arrondis */
  }
  
  /* Style du bloc de droite */
  .right {
    width: 40%; /* Ajuste la largeur selon les besoins */
    padding: 10px;
  }
  
  /* Style du titre principal */
  .right h1 {
    font-family: 'cabin';
    color: #000000;
    margin-bottom: 20px;
    text-align: left;
  }
  
  /* Style des blocs de contenu */
  .content1 {
    margin-bottom: 20px;
  }
  /* Conteneur pour le sous-titre avec icône */
.header-with-icon {
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    margin-left: 20px;
}

/* Style pour l'icône */
.header-with-icon .icon {
    width: 24px; /* Ajuster la taille selon les besoins */
    height: 24px; /* Ajuster la taille selon les besoins */
    margin-right: 10px; /* Espace entre l'icône et le sous-titre */
}

/* Style pour le sous-titre */
.header-with-icon .subtitle {
    font-size: 13px;
    margin: 0;
}

/* Style pour le paragraphe */
.header-with-icon p {
    margin-top: 5px;
}
  /* Style des sous-titres */
  .section-container h6 {
    padding: 5px;
    background-color: var(--bleu);
    color: #fff;
    text-align: center;
    border-radius: 15px;
    width: 30%;
    margin: 10px 0;
  }
  /* Style du contenu */
  
  .content1 p {
    text-align: left;
    margin: 0;
    color: #000;
    text-wrap: wrap;
  }

  /* Media Queries pour la responsive design */
  @media (max-width:1300px) {
    .section2 {
        width: 80%;
        margin-left: 15%;
    }
      .content1 p {
    text-justify: inter-word;
    text-align: justify;
    word-spacing: -0.09em;
    margin: 0;
    color: #000;
  }
    
  }
  @media only screen and (max-width: 768px) {

    .section2 {
        width: 80%;
      flex-direction: column;
      margin-left: 5%;
    }
  
    .left, .right {
      width: 100%;
    }
  

    .right h6{
        width: 50% ;
    }
    .section-container h6{
        width: 60%;
    }
    .overlay{
        display: none;
    }
    .image img{
        position: relative;
        width: 100%;
        margin-right: 0px;
    }
    .content1 p{
        text-align: left;
        text-wrap: wrap;
    }


  }
  /**************************************************/
  .section-container {
    width: 60%;
    max-width: 1200px;
    display: flex;
    flex-wrap: nowrap;
    margin-left: 15%;
    justify-content: space-between;
    padding: 20px;
}

.left-div,
.right-div {
    width: 50%;
    padding: 10px;
    margin-bottom: 20px;
}
.left-div p, .right-div p{
    text-align: justify;
    word-spacing: -0.05em; /* Réduit légèrement l'espacement entre les mots pour limiter les espaces blancs */
    letter-spacing: 0.01em; /* Ajuste l'espacement des lettres pour un meilleur alignement */
    hyphens: auto; /* Active la césure automatique des mots pour réduire les grands espaces blancs */
    white-space: normal; /* Gère les espaces blancs de manière standard, permettant les retours à la ligne */
    margin-top: 1px;
    margin-bottom: 1px;
}

@media (max-width:1300px) {
    .section-container{
        width: 80%;
        gap: 10px;
    }
    .left-div,
.right-div{
    width: 40%;
    gap: 5px;
}
}

@media (max-width: 768px) {
    .left-div,
    .right-div {
        width: 100%;
    }
    .section-container{
        flex-wrap: wrap;
        width: 80%;
        margin-left: 3%;
        margin-left: 1%;
    }
}
/**************************************************************************************************/
/* Conteneur principal pour les statistiques */
.stats {
    display: flex;
    max-width: 1200px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    gap: 20px;
    padding: 20px;
    width: 60%;
    margin-left: 15%;
    margin-right: 10%;
    margin-bottom: 6%;
}

/* Style pour chaque élément de statistique */
.stat-item {
   
    flex: 1 1 calc(25% - 40px); /* 25% moins les gaps pour les grands écrans */
    margin: 10px;
}


/* Style pour les numéros */
.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #005679; /* Ajustez la couleur selon vos besoins */
}

/* Style pour les descriptions */
.stat-description {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-top: 5px;
}

/* Media query pour les petits écrans */
@media (max-width: 768px) {
    .stat-item {
        flex: 1 1 calc(50% - 20px); /* 50% moins les gaps pour les petits écrans */
    }
    .stat-description{
        font-size: 12px;
    }
}
 /*************************************************************************************************/
/* Style pour la section des fonctionnalités */
.features-section {
    background-color: #e9e9e9;
    margin: 0 auto;
    padding: 40px 20px;
    margin-bottom: 6%;
}

/* Style pour l'introduction */
.features-section .intro {
    margin-bottom: 40px;
    width: 60%;
    max-width: 1200px;
    margin-left: 20%;
    margin-right: 10%;
}

.features-section .tagline {
    display: inline-block;
    text-align: left;
    background-color: var(--bleu);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.features-section h1 {
    font-family: 'cabin';
    margin: 10px 0;
}

.features-section p {
    text-align: justify;
    word-spacing: -0.09em;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    margin-left: 2px;
}

/* Style pour les fonctionnalités */
.features {
    margin-left: 20%;
    margin-right: 10%;
    width: 60%;
    max-width: 1200px;
    display: flex;
    flex-wrap: nowrap; /* Assure que les éléments ne s'enroulent pas sur plusieurs lignes */
    justify-content: space-between;
}

.feature-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
    margin: 5px;
    flex: 1 0 calc(25% - 20px); /* Ajuste les éléments pour qu'ils occupent 25% de la largeur avec de l'espace entre eux */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 10px;
}

.feature-item h3 {
    margin: 10px 0;
    color: #000;
}

.feature-item p {
    color: #666;
    text-align: left; /* Justifie le texte à gauche et à droite */
    margin-bottom: 10px; /* Réduit la marge inférieure pour limiter les espaces vides */
}

.learn-more {
    color: var(--bleu);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.learn-more:hover {
    color: var(--vert);
}

/* Media query pour les écrans de taille moyenne */
@media (max-width:1300px) {
    .features-section .intro{
        width: 80%;
        margin-left: 15%;
    }
    .features {
        width: 80%;
        margin-left: 10%;
    }

    
}
@media (max-width: 1024px) {
    .features {
        flex-wrap: wrap; /* Permet l'enroulement des éléments sur plusieurs lignes pour les écrans de taille moyenne */
    }

    .feature-item {
        flex: 1 0 calc(50% - 20px); /* Ajuste les éléments pour qu'ils occupent 50% de la largeur sur les écrans de taille moyenne */
    }
}

/* Media query pour les petits écrans */
@media (max-width: 768px) {
    .feature-item {
        flex: 1 0 100%; /* Ajuste les éléments pour qu'ils occupent 100% de la largeur sur les petits écrans */
    }
    .features-section .intro{
        margin-left: 7%;
    }
    .features {
        width: 80%;
        margin-left: 5%;
    }
}
/**************************************************************************************/

/* Style pour la section d'histoire */
.history-section {
    max-width: 1200px;
    margin-left: 10%;
    margin-right: 10%;
    width: 60%;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 6%;
}

/* Style pour l'introduction */
.history-section .intro {
    margin-bottom: 40px;
}

.history-section .tagline-2 {
    display: inline-block;
    background-color: var(--bleu);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.history-section h1 {
    font-family: 'cabin';
    margin: 10px 0;
    color: #000;
}

.history-section p {
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Style pour le conteneur d'image */
.image-container {
    margin-left: 10%;
    width: 80%;
    position: relative;
    margin-top: 40px;
}

.history-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Ajout de styles pour les éléments décoratifs */
.image-container::before,
.image-container::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: var(--bleu);
    border-radius: 10px;
    z-index: -1;
}

.image-container::before {
    bottom: -20px;
    left: -20px;
}

.image-container::after {
    top: -20px;
    right: -20px;
    background: url('images/A\ propos/Pattern.png') no-repeat center center;
    background-size: cover;
}

/* Media query pour les petits écrans */
@media (max-width:1300px) {
    .history-section{
        width: 80%;
    }
}
@media (max-width: 768px) {


    .image-container::before,
    .image-container::after {
        width: 70px;
        height: 70px;
    }

}
 /***************************************************************************************************/
 /* Style pour la section de l'équipe */
.team-section {
    margin-bottom: 40px;
    margin-left: 10%;
    margin-right: 10%;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    margin-bottom: 6%;
    text-align: left;
}

/* Style pour l'introduction */
.team-section .intro {
    margin-bottom: 40px;
}

.team-section .tagline-3 {
    display: inline-block;
    background-color: var(--bleu);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.team-section h1 {
    font-family: 'cabin';
    margin: 10px 0;
    color: #000;
}


/* Style pour l'équipe */
.team {
    text-align: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.team-member {
    min-height: 200px; /* Définir une hauteur minimale des éléments */
    justify-content: center;
}

.team-member:hover {
    transform: translateX(-10px);
}
.team-member img{
    border-radius: 15px;
    width: 50%;
    height: auto;
}
.team-member p{
    text-align: left;
    width: 60%;
    margin-left: 80px;
}
.row {
    gap: 20px;
    display: flex;
    justify-content: center; /* Centrer les éléments de la ligne */
    width: 100%;
}
.half {
    flex: 1 1 calc(60% - 15px); /* Les éléments de la première ligne occupent 50% de la largeur */
    margin-bottom: 5%;
}

.third {
    flex: 1 1 calc(33.33% - 20px); /* Les éléments de la deuxième ligne occupent 33.33% de la largeur */
}


.badge {
    display: inline-block;
    background-color: var(--bleu);
    color: #ffffff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 10px;
    margin-top: 150px;
    margin-left: -40px;
    position: relative;
    z-index: 1;
}

.team-member h3 {
    margin: 10px 0;
    color: #000;
    margin-left: -50px;
}

.team-member p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-media a img {
    width: 21px;
    height: 21px;
}
@media (max-width: 1324px) {
    .half, .third {
        flex: 1 1 calc(50% - 15px); /* Sur les écrans moyens, les éléments occupent 50% de la largeur */
    }
    .team-member p{
        text-align: justify;
        width: 60%;
        margin-left: 50px;
    }
}

@media (max-width: 768px) {
    .row {
        flex-direction: column; /* Sur les petits écrans, les éléments sont affichés en colonne */
        align-items: center;
    }
    .half, .third {
        flex: 1 1 100%; /* Les éléments occupent 100% de la largeur sur les petits écrans */
    }
}

/* Media query pour les tablettes */
@media (max-width:1300px) {
    .member-photo {
        width:  60%;
        height: 100px;
        border-radius: 10px;
    }
    
}
@media (max-width: 1024px) {

    .team {
        flex-wrap: wrap;
    }
    .team-member {
        flex: 1 1 calc(50% - 20px); /* Ajuste les éléments pour qu'ils occupent 50% de la largeur sur les écrans de taille moyenne */
    }
}

/* Media query pour les petits écrans */
@media (max-width: 768px) {
    .member-photo{
        width: 60%;
        height: auto;
    }
    .team-member {
        flex: 1 1 100%; /* Ajuste les éléments pour qu'ils occupent 100% de la largeur sur les petits écrans */
    }
    .team-member h3{
        font-size: 13px;
        text-align: center;
        margin-left: -5px;
    }
    .team-member p{
        margin-left: 60px;
    }
    .team-section p{
        text-align: left;
        font-size: 12px;
    }
}
 /***************************************************************************************************/
.cta-section {
    background-color: var(--bleu);
    color: #ffffff;
    border-radius: 15px;
    margin-bottom: 40px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 60%;
    max-width: 1200px;
    margin-left: 20%;
    margin-right: 10%;
    margin-bottom: 6%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    position: relative;
    overflow: hidden; /* To ensure the pattern does not overflow */
}

.cta-content {
    max-width: 50%;
}

.cta-button2 {
    background-color: var(--vert);
    width: 70%;
    color: #ffffff;
    border: none;
    text-align: center;
    border-radius: 20px;
    padding: 10px 20px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Ombre noire */
}

.cta-title {
    margin: 0 0 20px;
    line-height: 1.2;
}

.cta-text {
    text-align: left;
    margin: 0 0 20px;
    color: #fff;
}

.cta-contact {
    display: flex;
    align-items: center;
    background-color: #3E7C45;
    width: 40%;
    border-radius: 25px;
    text-decoration: none;
    padding: 10px 10px;
    font-size: 14px;
    color: #ffffff; 
}

.cta-phone-icon {
    margin-right: 10px;
    font-size: 20px;
}

.cta-pattern {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-right: 8%;
    height: 100%;
    width: 50%;
    background-image: url('images/Pattern.png'); /* URL of your pattern image */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    z-index: 2;
}

.pattern-box {
    background-color: #3E7C45;
    border-radius: 10px;
    margin-bottom: 200px;
    position: relative;
}

.pattern-box.large {
    width: 150px;
    height: 200px;
    z-index: 3;
}

.pattern-box.small {
    width: 100px;
    height: 100px;
    background-color: #4b8b3b;
    position: absolute;
    top: 90px;
    left: 200px;
    z-index: 1;
}
/* Responsive Styles */
@media (max-width:1300px) {
    .cta-section{
        width: 80%;
        margin-left: 10%;
    }
}
@media (max-width: 768px) {
    .cta-section {
        margin-left: 10%;
        padding: 20px;
        width: 80%;
    }
    .cta-contact {
        flex-direction: row;
        width: 70%;
        padding: 10px;
    }
    .cta-button{
        width: 70%;
        font-size: 10px;
    }
    .pattern-box.large {
        width: 100px;
        height: 100px;
    }
    .pattern-box.small {
        width: 70px;
        height: 70px;
        top: 40%;
        left: 60%;
    }
}

@media (max-width: 480px) {
    .cta-contact {
        flex-direction: row;
        padding: 10px;
        width: 120%;
        font-size: 10px;
    }
    .cta-text{
        text-align: left;
    }
    .cta-button2{
        width: 100%;
    }
    .pattern-box.large {
        width: 80px;
        height: 80px;
    }
    .pattern-box.small {
        width: 50px;
        height: 50px;
        top: 45%;
        left: 55%;
    }
}
/************************************************************************/
.section {
    margin-bottom: 10px;
    transition: all 0.3s ease-in-out;
}
.hidden-content {
    display: none;
}
.hidden-content p{
    margin-left: 100px;
}
.second p{
    margin-left: 50px;
}
.show-more-btn {
    margin-top: -100px;
    cursor: pointer;
    color: var(--bleu);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-left: 25%;
}
.show {
    margin-left: 40%;
}
.show-more-btn:hover {
    text-decoration: underline;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {

    .show-more-btn {
        font-size: 0.9em;
    }
    .hidden-content p{
        margin-left: 60px;
    }
    .second p{
        margin-left: 60px;
    }
}

@media (max-width: 480px) {

    .show {
        margin-left: 30%;
    }
    .show-more-btn {
        font-size: 0.8em;
    }
}